package com.estylesoft.pshevch.fw;

import org.openqa.selenium.By;

/**
 * Created with IntelliJ IDEA.
 * User: pshevchenko
 * Date: 08.04.13
 * Time: 10:14
 * To change this template use File | Settings | File Templates.
 */
public class UserHelper extends HelperBase {
    public UserHelper(ApplicationManager applicationManager) {
        super(applicationManager);
    }

    public void login(String loginString, String passwordString) {
        fillTextField(By.id("username"), loginString);
        fillTextField(By.name("password"), passwordString);
        driver.findElement(By.name("submit")).click();
    }


}
